package com.wyhello.tube4.spring.model;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.wyhello.tube4.facade.TubeFacade;
import com.wyhello.tube4.pojo.User;

public class UserOperateModel {
	@Autowired
	private TubeFacade facade;

	public TubeFacade getFacade() {
		return facade;
	}

	public void setFacade(TubeFacade facade) {
		this.facade = facade;
	}

	public boolean saveUser(User user){
		return facade.saveUser(user);
	}

	public int deleteUser(String ids){
		return facade.deleteUser(ids);
	}

	public List<User> queryUser(){
		return facade.queryUser();
	}

	public User getUserById(int id){
		return facade.getUserById(id);
	}

	public boolean updateUser(User user){
		return facade.updateUser(user);
	}
	
	public void deleteUS(User user){
		facade.deleteUS(user);
	}

}
